<template>
  <div id="main">
    <el-container>
      <el-header></el-header>
      <el-container>
        <el-aside width="220px">
          <mainleftVue></mainleftVue>
        </el-aside>
        <el-main>
          <div>
            <router-view></router-view>
          </div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
  import mainleftVue from '../../components/mainleft.vue'

  export default {
    name: "main",
    components: {
      mainleftVue
    }
  }
</script>

<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    overflow-x: hidden;
    position: fixed;
    bottom: 0px;
    top: 60px;
    border-right: 1px solid cornflowerblue;
  }

  .el-main {
    position: fixed;
    bottom: 0px;
    top: 60px;
    right: 0px;
    left: 220px;
    padding: 0px;
  }

  body>.el-container {}
</style>